package com.dgcsxy.cat_eyes_movies.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author rokies
 * @DATE 2022/6/16 16:17
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @TableId
    private int userId;
    private String userName;
    private String userPassword;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date userBirthday;
    private String userEmail;

    public User(String userName, String userPassword, Date userBirthday, String userEmail) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userBirthday = userBirthday;
        this.userEmail = userEmail;
    }
}
